package com.example.demo.Common.Enum;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum NoteType {
    Test(0,"日常笔记"),
    Normal(1,"日常笔记"),
    TemplateSWOT(2,"SWOT"),
    Template5W1H(3,"5W1H"),
    TemplateTimeFour(4,"TimeFour");

    /** 数据库存储数据 */
    @EnumValue
    private final Integer value;
    /** 显示文本 */
    @JsonValue
    private final String desc;

    NoteType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String toString() {
        return "NoteStatus{value = " + value + ", desc = " + desc + "}";
    }
}
